package com.zdb.demo.design.principle.singleresponsibility;

public class Method {
    private void updateUserInfo(String name, String address) {
        name = "n1";
        address = "a1";
    }

    private  void updateUserInfo(String name, String... properties) {
        name = "aaa";
    }

    private void updateUserName(String name) {
        name = "aaa";
    }
    private void updateUserAddress(String address) {
        address = "addr";
    }

    private void updateUserInfo(String name, String address, boolean bool) {
        // 这种判断的方法，可以拆分成两个方法
        if(bool) {
            // todo something1
        } else {
            // todo someting2
        }
    }
}
